package com.zhongan.cglib.demo;

import org.springframework.util.StopWatch;

public class Test {
    
    public static void main(String[] args) {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start("test");
        CglibProxy cglibProxy = new CglibProxy();
        TargetBean proxyBean = (TargetBean) cglibProxy.getProxy(TargetBean.class);
        proxyBean.method();
        proxyBean.method2();
        proxyBean.function();
        stopWatch.stop();
        System.out.println("总耗时：");
        System.out.println(stopWatch.prettyPrint());
    }

}
